-
Notifications
You must be signed in to change notification settings - Fork 114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
auto generate localstack cli manual #812
base: main
Are you sure you want to change the base?
Conversation
🎊 PR Preview has been successfully built and deployed to https://localstack-docs-preview-pr-812.surge.sh 🎊 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggest not including deprecated commands daemons and infra. Since the CLI docs are just being re-added, let's not advertise commands we don't want to get used. ?
@@ -0,0 +1,54 @@ | |||
import subprocess | |||
import re | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
black_list = ["infra", "daemons"] |
|
||
# Loop through each command and its purpose | ||
for cmd, cmd_purpose in command_purposes.items(): | ||
# Execute 'localstack [cmd] --help' and capture the output |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# Execute 'localstack [cmd] --help' and capture the output | |
# Don't add commands from black list to the docs | |
if cmd in black_list: | |
continue | |
# Execute 'localstack [cmd] --help' and capture the output |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@cabeaulac: I don't think that we should remove deprecated functions from the docs. They are clearly marked as deprecated. A black list again is not automatically adjusted. What happens when we deprecate another operation in the next release?
@HarshCasper: The script looks great! However, it would be great if we could move this workflow to the localstack/localstack-cli
repo, and trigger it on a published release (similar to the homebrew tap update). This is exactly when users can access the changes in the CLI, and we wouldn't have any time where the docs are mismatched again (because this workflow is only executed every three months).
@alexrashed My point was
Otherwise, I totally agree, fine to have deprecated things in docs. But why advertise things we don't want used the first time we're advertising. Doesn't matter to me, was just trying to stop people from seeing these in docs and start using them. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The decision linking (see extensions PR) vs. duplicating through auto-generation is a bit trickier here due to the split of the source code in localstack
, build in localstack-cli
, and documentation currently in docs
.
I see the value of auto-generating this manuals page upon new CLI releases (as @alexrashed suggested ideally triggered from localstack-cli
).
I have a few suggestions and included the input from @MarcelStranak in this review.
|
||
This command shows the logs of the currently running LocalStack docker | ||
container. By default, this command looks for a container named | ||
`localstack_main` (which is the default container name used by the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changed to localstack-main
(many other occurrences)
--- | ||
title: LocalStack CLI manual | ||
weight: 3 | ||
description: The reference guide for LocalStack CLI commands and how to get started on using them! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ATM, it does not really show "how to get started on using them" (beyond the single completion example).
description: The reference guide for LocalStack CLI commands and how to get started on using them! | ||
--- | ||
|
||
The LocalStack command-line interface (CLI) is a tool for starting, managing, and configuring your LocalStack container. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Related to @MarcelStranak 's point of missing the LocalStack CLI under the LocalStack Tools section discussed in #sig-docs here (internal link):
- I agree with @MarcelStranak that under the current section structure, I'm also missing any mention of the
LocalStack CLI
under theTools
section, especially given that we define it as a "tool" right here. We need a landing page for the LocalStack CLI advertising why it should be used and highlighting the key features. - I agree with @HarshCasper that the installation instructions need to be under
Getting Started
. We could use a shared block to include inGetting Started
andLocalStack CLI
tools intro page.
💡 One idea is to have a short advertising quick starter guide under Tools
and then link to this References
page for full details.
@HarshCasper It would be good to fix the 404s related to the LocalStack CLI soon 🙏 : 📆 IMHO, having at least some advertising page for the LocalStack CLI up for re:invent would be very helpful for users to evaluate whether that's something they should try. |
No description provided.